#ifndef _COIN_H_
#define _COIN_H_

#include "Object.h"

#define GRAVITY 0.01

class Coin : public Object
{	
private:
	
	//float _accelY;

	float _yOld;

	int _numberCoin;		//so luong coin
	bool isHidden;			//coin an hay hien

public:
	/*
	 *	Get/Set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Constructor/Destructor
	 */
	Coin(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int id_obj_type, int obj_state);
	~Coin();

	/*
	 *	Method
	 */
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF, Object* simon){}

	void render(int cameraX, int cameraY);
	void changeState(int obj_state);
};

#endif